$OpenBSD: patch-snmplib_snmp_api_c,v 1.3 2015/04/13 08:41:36 sthen Exp $

http://www.openwall.com/lists/oss-security/2015/04/13/1

--- snmplib/snmp_api.c.orig	Mon Apr 13 09:35:44 2015
+++ snmplib/snmp_api.c	Mon Apr 13 09:36:56 2015
@@ -4500,7 +4500,7 @@ snmp_pdu_parse(netsnmp_pdu *pdu, u_char * data, size_t
      */
     while ((int) *length > 0) {
         netsnmp_variable_list *vptemp;
-        vptemp = (netsnmp_variable_list *) malloc(sizeof(*vptemp));
+        vptemp = (netsnmp_variable_list *) calloc(1, sizeof(*vptemp));
         if (NULL == vptemp) {
             return -1;
         }
